import { injectable } from "inversify";
import { Event, TextDocument, TextEditor, window, workspace } from "vscode";
import { IDocumentManager } from "./types";

@injectable()
export class DocumentManager implements IDocumentManager {
    public get onDidChangeActiveTextEditor(): Event<TextEditor | undefined> {
        return window.onDidChangeActiveTextEditor;
    }
    public get onDidOpenTextDocument(): Event<TextDocument> {
        return workspace.onDidOpenTextDocument;
    }
    public get activeTextEditor(): TextEditor | undefined {
        return window.activeTextEditor;
    }
}